package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.util.Date;
import java.util.List;

/**
    * 困人详情
    */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "blade_maintain_predicament_detail",autoResultMap = true)
public class MaintainPredicamentDetail extends TenantEntity {
    /**
     * 维保任务id
     */
    @TableField(value = "plan_id")
    private Long planId;

    /**
     * 任务编号，庸与字段
     */
    @TableField(value = "plan_num")
    private String planNum;

    /**
     * 问题描述
     */
    @TableField(value = "question_desc")
    private String questionDesc;

    /**
     * 地点
     */
    @TableField(value = "address")
    private String address;

    /**
     * 被救人电话
     */
    @TableField(value = "phone")
    private String phone;

	/**
	 * 报障人姓名
	 */
	@TableField(value = "name")
	private String name;

    /**
     * 到达完成时间
     */
    @TableField(value = "finish_time")
    private Date finishTime;

    /**
     * 计划到达耗时时间默认30分钟
     */
    @TableField(value = "plan_time")
    private Date planTime;

	@TableField(typeHandler = FastjsonTypeHandler.class)
	private List<String> mfImgUrl;
}
